package com.example.myapplication8;

public class Book {
    private String name;
    private int price;
    private int booktype;

    public Book() {
    }

    public Book(String name, int price, int booktype) {
        this.name = name;
        this.price = price;
        this.booktype = booktype;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getBooktype() {
        return booktype;
    }

    public void setBooktype(int booktype) {
        this.booktype = booktype;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", price=" + price +
                ", booktype=" + booktype +
                '}';
    }
}